<?php
$v_date_current = date("Y/m/d");
//echo $v_date_current;
//echo Get_DMY($v_date_current);

if (sizeof($arr_single_record)>0){
	$v_record_id = $arr_single_record['PK_RECORD'];
}else{
	$v_record_id = 0;
}
if(isset($_REQUEST['hdn_record_id'])){
	$v_record_id = intval($_REQUEST['hdn_record_id']);
}
$v_status = 1;
$v_filter = "";
$v_cate_id= 0;
if(_is_sqlserver()){
	$sql = "Exec Onegate_RecordWorkGetAll ";
	$sql = $sql ."'". $v_record_id."'" ;
	//echo $sql;
	$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
	$arr_record_work = $ado_conn->GetAll($sql);
	$v_count_record_work = sizeof($arr_record_work);	
	$v_limted = abs(dateDiff($arr_record_work[$v_count_record_work-1]['C_DATE'], $v_date_current)) ;
	//var_dump($arr_record_work);
}?>
